<?php
namespace Member\Controller;
use Think\Controller;
use User\Api\UserApi;
/**
 * 
 */
class PublicController extends Controller {
	
	function register() {
		if (IS_POST) {
			$user = new UserApi;
			$uid  = $user->register($username, $password);
		} else {
			$this->meta_title = '注册';
			$this->display();
		}
	}
	
	function login() {
		if (IS_POST) {
			$user = new UserApi;
			$uid  = $user->login($username, $password);
		} else {
			$this->meta_title = '登陆';
			$this->display();
		}
	}
}